/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * formDVD_VCD.java
 *
 * Created on Oct 12, 2011, 6:45:14 PM
 */
package com.system.formgui.source;

import com.system.source.connector.DataBaseConnection;
import com.system.source.data.DVDVCD;
import com.system.source.model.DvdVcdTabelModel;
import com.system.source.model.Painter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.sql.Blob;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.filechooser.FileFilter;
import javax.swing.filechooser.FileNameExtensionFilter;

/**
 *
 * @author Pinds
 */
public class formDVD_VCD extends javax.swing.JInternalFrame {

    /** Creates new form formDVD_VCD */
    public formDVD_VCD() {
        this.initComponents();
        this.setTitle("DVD/VCD");
        this.tabelModel = new DvdVcdTabelModel();
        this.tbDvdVcd.setModel(tabelModel);
        this.fillTabel();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        tKode = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        tJudulFilm = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        cbJenisFilm = new javax.swing.JComboBox();
        jLabel4 = new javax.swing.JLabel();
        tHarga = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        tJumlahDVD = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        bCariGambar = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jScrollPane2 = new javax.swing.JScrollPane();
        tbDvdVcd = new javax.swing.JTable();
        tCover = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        cCover = new Painter();
        jLabel7 = new javax.swing.JLabel();
        bTutup = new javax.swing.JButton();
        bTambah = new javax.swing.JButton();
        bUbah = new javax.swing.JButton();

        setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/com/system/formgui/images/file_extension_vcd.png"))); // NOI18N

        jPanel2.setBackground(new java.awt.Color(204, 255, 204));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 629, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 49, Short.MAX_VALUE)
        );

        jLabel1.setText("Kode DVD/VCD");

        jLabel2.setText("Judul FIlm");

        jLabel3.setText("Kode Jenis Fim");

        cbJenisFilm.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5" }));

        jLabel4.setText("Harga");

        jLabel5.setText("Jumlah DVD");

        jLabel6.setText("Cover");

        bCariGambar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/system/formgui/images/search_plus.png"))); // NOI18N
        bCariGambar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bCariGambarActionPerformed(evt);
            }
        });

        jTextArea1.setColumns(20);
        jTextArea1.setFont(new java.awt.Font("Monospaced", 2, 14));
        jTextArea1.setRows(5);
        jTextArea1.setText("Untuk Menambahkan data DVD/VCD baru \ndan juga untuk merubah data DVD/VCD \njika perlu terjadinya Perubahan");
        jTextArea1.setEnabled(false);
        jScrollPane1.setViewportView(jTextArea1);

        tbDvdVcd.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "Kode", "Judul FIlm", "Kode Jenis Film", "Harga", "Stock", "Dipinjam", "Cover"
            }
        ));
        tbDvdVcd.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbDvdVcdMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(tbDvdVcd);

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Cover"));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cCover, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 198, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(cCover, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)
        );

        jLabel7.setText("Rp");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3)
                            .addComponent(jLabel6))
                        .addGap(28, 28, 28)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(tKode, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(tJudulFilm, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(cbJenisFilm, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(41, 41, 41)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel5)
                                    .addComponent(jLabel4)))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(tCover, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(bCariGambar, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 388, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(tHarga, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tJumlahDVD, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel7)))
                .addContainerGap())
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 609, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(tKode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5)
                    .addComponent(tJumlahDVD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(tJudulFilm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4)
                    .addComponent(tHarga, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(cbJenisFilm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel6)
                                .addComponent(tCover, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(bCariGambar))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
                .addContainerGap())
        );

        bTutup.setText("Tutup");
        bTutup.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bTutupActionPerformed(evt);
            }
        });

        bTambah.setText("Tambah");
        bTambah.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bTambahActionPerformed(evt);
            }
        });

        bUbah.setText("Ubah");
        bUbah.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bUbahActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(375, Short.MAX_VALUE)
                .addComponent(bUbah, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(bTambah)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(bTutup, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(bTutup)
                    .addComponent(bTambah)
                    .addComponent(bUbah))
                .addContainerGap(48, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void fillTabel() {
        try {
            int row = tbDvdVcd.getRowCount();
            for (int i = 0; i < row; i++) {
                tabelModel.hapusTabel(0, row);
            }
            Statement st = DataBaseConnection.getConnection().createStatement();
            String sql = "select * from `dvd/vcd` order by Kode_DVD";
            ResultSet rs = st.executeQuery(sql);
            while (rs.next()) {
                DVDVCD dv = new DVDVCD();
                dv.setKode_DVD(rs.getString(1));
                dv.setJudulFilm(rs.getString(2));
                dv.setKode_JenisFilm(rs.getInt(3));
                dv.setHarga(rs.getDouble(4));
                dv.setStock(rs.getInt(5));
                dv.setDipinjam(rs.getInt(6));
                Blob blob = rs.getBlob(7);
                dv.setCover(blob);
                tabelModel.tambahDVDVCD(dv);
            }
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, ex, "Error", JOptionPane.ERROR_MESSAGE);
        }
    }

    private void setNullProperty() {
        ((Painter) cCover).setImage(null);
        tKode.setText(null);
        tJudulFilm.setText(null);
        cbJenisFilm.setSelectedIndex(0);
        tCover.setText(null);
        tJumlahDVD.setText(null);
        tHarga.setText(null);
    }
private void bTutupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bTutupActionPerformed
    this.setVisible(false);// TODO add your handling code here:
}//GEN-LAST:event_bTutupActionPerformed

private void bCariGambarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bCariGambarActionPerformed
    try {
        JFileChooser jfc = new JFileChooser();
        FileFilter jpgFilter, gifFilter, bothFilter;
        jpgFilter = new FileNameExtensionFilter("Gambar JPEG", "jpg");
        gifFilter = new FileNameExtensionFilter("Gambar GIF", "gif");
        bothFilter = new FileNameExtensionFilter("Gambar JPEG dan GIF", "jpg", "gif");
        jfc.setAcceptAllFileFilterUsed(false);
        jfc.addChoosableFileFilter(jpgFilter);
        jfc.addChoosableFileFilter(gifFilter);
        jfc.addChoosableFileFilter(bothFilter);
        if (jfc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
            String f = jfc.getSelectedFile().toString();
            tCover.setText(f);
            ((Painter) cCover).setImage(f);
        }
    } catch (Exception ex) {
        JOptionPane.showMessageDialog(null, ex, "Error", JOptionPane.ERROR_MESSAGE);
    }
}//GEN-LAST:event_bCariGambarActionPerformed

private void bTambahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bTambahActionPerformed
    try {
        File file = new File(tCover.getText());
        String sql = "insert into `dvd/vcd`(Kode_DVD,JudulFilm,Kode_JenisFilm,"
                + "Harga,Stock,Dipinjam,Cover) values (?,?,?,?,?,?,?);";
        PreparedStatement st = DataBaseConnection.getConnection().prepareStatement(sql);
        st.setString(1, tKode.getText());
        st.setString(2, tJudulFilm.getText());
        st.setInt(3, (cbJenisFilm.getSelectedIndex() + 1));
        st.setDouble(4, Double.parseDouble(tHarga.getText()));
        st.setInt(5, Integer.parseInt(tJumlahDVD.getText()));
        st.setInt(6, 0);
        st.setBlob(7, new FileInputStream(file));
        st.executeUpdate();
        fillTabel();
        setNullProperty();
        JOptionPane.showMessageDialog(null, "Data berhasil ditambah");
    } catch (FileNotFoundException ex) {
        JOptionPane.showMessageDialog(null, ex, "Error", JOptionPane.ERROR_MESSAGE);
    } catch (SQLException ex) {
        JOptionPane.showMessageDialog(null, ex, "Error", JOptionPane.ERROR_MESSAGE);
    }
}//GEN-LAST:event_bTambahActionPerformed

private void bUbahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bUbahActionPerformed
    try {
        if (tCover.getText().equals("")) {
            String sql = "update `dvd/vcd` set "
                    + "Kode_DVD=?,"
                    + "JudulFilm=?,"
                    + "Kode_JenisFilm=?,"
                    + "Harga=?,"
                    + "Stock=? "
                    + "where Kode_DVD='" + tKode.getText() + "';";
            PreparedStatement st = DataBaseConnection.getConnection().prepareStatement(sql);
            st.setString(1, tKode.getText());
            st.setString(2, tJudulFilm.getText());
            st.setInt(3, (cbJenisFilm.getSelectedIndex() + 1));
            st.setDouble(4, Double.parseDouble(tHarga.getText()));
            st.setInt(5, Integer.parseInt(tJumlahDVD.getText()));
            st.executeUpdate();
            fillTabel();
            setNullProperty();
        } else {
            File file = new File(tCover.getText());
            String sql = "update `dvd/vcd` set "
                    + "Kode_DVD=?,"
                    + "JudulFilm=?,"
                    + "Kode_JenisFilm=?,"
                    + "Harga=?,"
                    + "Stock=?,"
                    + "Cover=? "
                    + "where Kode_DVD='" + tKode.getText() + "';";
            PreparedStatement st = DataBaseConnection.getConnection().prepareStatement(sql);
            st.setString(1, tKode.getText());
            st.setString(2, tJudulFilm.getText());
            st.setInt(3, (cbJenisFilm.getSelectedIndex() + 1));
            st.setDouble(4, Double.parseDouble(tHarga.getText()));
            st.setInt(5, Integer.parseInt(tJumlahDVD.getText()));
            st.setBlob(6, new FileInputStream(file));
            st.executeUpdate();
            fillTabel();
            setNullProperty();
        }
        JOptionPane.showMessageDialog(null, "Data berhasil diubah");
    } catch (FileNotFoundException ex) {
        JOptionPane.showMessageDialog(null, ex, "Error", JOptionPane.ERROR_MESSAGE);
    } catch (SQLException ex) {
        JOptionPane.showMessageDialog(null, ex, "Error", JOptionPane.ERROR_MESSAGE);
    }
}//GEN-LAST:event_bUbahActionPerformed

private void tbDvdVcdMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbDvdVcdMouseClicked
    if (tbDvdVcd.isEnabled()) {
        int n = 0;
        n = tbDvdVcd.getSelectedRow();
        tKode.setText(tbDvdVcd.getValueAt(n, 0).toString());
        tJudulFilm.setText(tbDvdVcd.getValueAt(n, 1).toString());
        cbJenisFilm.setSelectedIndex(((Integer) tbDvdVcd.getValueAt(n, 2)) - 1);
        tJumlahDVD.setText(tbDvdVcd.getValueAt(n, 4).toString());
        tHarga.setText(tbDvdVcd.getValueAt(n, 3).toString());
    }
}//GEN-LAST:event_tbDvdVcdMouseClicked
    private DvdVcdTabelModel tabelModel;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bCariGambar;
    private javax.swing.JButton bTambah;
    private javax.swing.JButton bTutup;
    private javax.swing.JButton bUbah;
    private java.awt.Canvas cCover;
    private javax.swing.JComboBox cbJenisFilm;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField tCover;
    private javax.swing.JTextField tHarga;
    private javax.swing.JTextField tJudulFilm;
    private javax.swing.JTextField tJumlahDVD;
    private javax.swing.JTextField tKode;
    private javax.swing.JTable tbDvdVcd;
    // End of variables declaration//GEN-END:variables
}
